﻿
using ServerListerner.Enums;

using System;
using System.Collections.Generic;
using System.Text;

namespace ServerListerner.Attributes
{
    [AttributeUsage(AttributeTargets.Method,AllowMultiple = true)]
    public class RouterAttribute:Attribute
    {
        private readonly string? _path;
        private readonly MethodEnum? _method;
        public string Path { get => _path; }
        public MethodEnum? Method { get => _method; }
        public RouterAttribute(string? path="", MethodEnum method=MethodEnum.GET)
        {
            _path = path??"/";
            _method = method;
        }
    }
}
